package org.novudu.presentation.actions;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.ListSelectionDialog;
import org.eclipse.update.core.IFeature;

public class FeatureListSelectionDialog extends ListSelectionDialog {
	
	protected List<Object> list;
	
	public FeatureListSelectionDialog(Shell parentShell, Object input,
			IStructuredContentProvider contentProvider,
			ILabelProvider labelProvider, String message) {
		super(parentShell, input, contentProvider, labelProvider, message);
		
	}
	
	public FeatureListSelectionDialog(Shell parentShell, List<IFeature> list, String message) {
		super(parentShell, list, getBasicContentProvider(), new FeatureLabelProvider(), message);
		this.setTitle(message);
	}
	
	private static BasicContentProvider getBasicContentProvider() {
		return new BasicContentProvider();
	}
	
}
